home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-06-30 | 1.4 KB | 45 lines |
- /*
- * @(#)ViewFactory.java 1.11 98/04/09
- *
- * Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
- *
- * This software is the confidential and proprietary information of Sun
- * Microsystems, Inc. ("Confidential Information"). You shall not
- * disclose such Confidential Information and shall use it only in
- * accordance with the terms of the license agreement you entered into
- * with Sun.
- *
- * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
- * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
- * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
- * THIS SOFTWARE OR ITS DERIVATIVES.
- *
- */
- package com.sun.java.swing.text;
-
- import java.awt.Container;
-
- /**
- * A factory to create a view of some portion of document subject.
- * This is intended to enable customization of how views get
- * mapped over a document model.
- *
- * @author Timothy Prinzing
- * @version 1.11 04/09/98
- */
- public interface ViewFactory {
-
- /**
- * Creates a view from the given structural element of a
- * document.
- *
- * @param elem the piece of the document to build a view of
- * @return the view
- * @see View
- */
- public View create(Element elem);
-
- }
-